<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
		<style>
		</style>
	</head>
	<body>
		<div id="box">
			<p v-for="(item,index) in colors" :key="index">我喜欢的颜色有：
				<span style="color: aquamarine;">{{item.name}}</span>
			</p>

			<p v-for="(item,index) in data" :key="index">{{item}}</p>
		</div>

		<script>
			new Vue({
				el: '#box',
				data: {
					data: [1, 2, 3, 4, 5, 6],
					colors: [{
						name: 'red'
					}, {
						name: 'blue'
					}, {
						name: 'yellow'
					}, {
						name: 'black'
					}]
				}
			})
		</script>
	</body>
</html>
